<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Exceptions</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.bson-encode.html">« bson_encode</a></li>
      <li style="float: right;"><a href="class.mongoexception.html">MongoException »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.mongo.html">Mongo</a></li>
    <li>Exceptions</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="mongo.exceptions" class="part">

 <h1>Exceptions</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_part"><li><a href="class.mongoexception.html">MongoException</a></li><li><a href="class.mongoresultexception.html">MongoResultException</a></li><li><a href="class.mongocursorexception.html">MongoCursorException</a></li><li><a href="class.mongocursortimeoutexception.html">MongoCursorTimeoutException</a></li><li><a href="class.mongoconnectionexception.html">MongoConnectionException</a></li><li><a href="class.mongogridfsexception.html">MongoGridFSException</a></li><li><a href="class.mongoduplicatekeyexception.html">MongoDuplicateKeyException</a></li><li><a href="class.mongoprotocolexception.html">MongoProtocolException</a></li><li><a href="class.mongoexecutiontimeoutexception.html">MongoExecutionTimeoutException</a></li><li><a href="class.mongowriteconcernexception.html">MongoWriteConcernException</a></li></ul>


 <div class="partintro">
  <div class="section">
   <h2 class="title">VMWare Oddities</h2>
   <p class="para">
    If you are running VMWare on Windows and are using CIFS, pausing the VM will 
    cause CIFS to go out of sync and cause weird errors on un-pausing it (&quot;The 
    Mongo object has not been correctly initialized by its constructor&quot;).  
    Permanently mounting the Windows shares will fix this and you&#039;ll be able to
    pause and unpause at will.
   </p>
   <p class="para">
    To permanently mount the Windows shares, run:
   </p>
   <div class="example-contents">
    <div class="shellcode"><pre class="shellcode">$ sudo update-rc.d -f umountnfs.sh remove
$ sudo update-rc.d umountnfs.sh stop 15 0 6 .</pre>
</div>
   </div>

   <p class="para">
    See <a href="https://help.ubuntu.com/community/MountWindowsSharesPermanently" class="link external">&raquo;&nbsp;the Ubuntu docs</a> for the most
    up-to-date instructions.
   </p>
  </div>
 </div>

 






 






 






 






 






 






 






 






 






 







</div>
</div></div></body></html>